package com.xbongbong.pro.link.business.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/10/30 16:30
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class LinkBusinessFieldPojo implements Serializable {

    private static final long serialVersionUID = 970257279456927880L;

    @NotEmpty(message = "字段标识不能为空")
    private String attr;

    private String attrName;

    @NotNull(message = "字段类型不能为空")
    private Integer fieldType;

    @NotNull(message = "启用标识不能为空")
    private Integer enable;

    private Integer editable;

    @Valid
    private List<LinkBusinessSubFieldPojo> subFieldList;
}
